<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<div class="menu_bg">
	<div class="menu">
		<%
			if (session.getAttribute("categoryList") == null) {
				response.sendRedirect("IndexServlet?action=show");
			}
		%>
		<!--Begin 商品分类详情 Begin-->
		<div class="nav">
			<div class="nav_t">全部商品分类</div>
			<div class="leftNav">
				<ul>
					<c:forEach items="${sessionScope.categoryList.get(0)}" var="pc1"
						varStatus="status">
						<li>
							<div class="fj">
								<span class="n_img"> <img
									src="../statics/images/nav1.png" /> </span> <span class="fl">${pc1.name}</span>
							</div>
							<div class="zj" style="top:-${status.index*40}px;">
								<div class="zj_l">
									<c:forEach items="${sessionScope.categoryList.get(1)}"
										var="pc2" varStatus="status">
										<c:if test="${pc2.parentId==pc1.id}">
											<div class="zj_l_c">

												<h2>${pc2.name }</h2>
												<c:forEach items="${sessionScope.categoryList.get(2)}"
													var="pc3" varStatus="v">
													<c:if test="${pc3.parentId==pc2.id}">
														<a href="#">${pc3.name }</a>|
                										</c:if>
												</c:forEach>
											</div>
										</c:if>
									</c:forEach>
								</div>
								<div class="zj_r">
									<a href="#"><img src="../statics/images/n_img1.jpg"
										width="236" height="200" /> </a> <a href="#"><img
										src="../statics/images/n_img2.jpg" width="236" height="200" />
									</a>
								</div>
							</div>
						</li>
					</c:forEach>
				</ul>
			</div>
		</div>
		<!--End 商品分类详情 End-->
		<ul class="menu_r">
			<li><a href="Index.jsp">首页</a>
			</li>
			<c:forEach items="${sessionScope.categoryList.get(0)}" var="pc1"
				varStatus="status">
				<li><a href="#">${pc1.name }</a>
				</li>
			</c:forEach>
		</ul>
		<div class="m_ad">全是假货，放心购买！！！</div>
	</div>
</div>